package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.Product;
import com.ysd.entity.Recommend;
import com.ysd.mapper.RecommendMapper;
import com.ysd.service.RecommendService;
@Service
public class RecommendServiceImpl implements RecommendService {
	@Autowired
	private RecommendMapper recommendMapper;
	@Override
	public List<Recommend> findRecommend() {
		// TODO Auto-generated method stub
		return recommendMapper.getRecommends();
	}
	@Override
	public List<Recommend> getRecommend(Recommend recommend) {
		// TODO Auto-generated method stub
		return recommendMapper.getRecommend(recommend);
	}
	@Override
	public int getSize(Recommend recommend) {
		// TODO Auto-generated method stub
		return recommendMapper.getSize(recommend);
	}
	
	 @Override 
	 public int updateRecommends(Recommend recommend) { 
	 return recommendMapper.updateRecommends(recommend); 
	 
	 }
	 
	@Override
	public int delRecommends(Recommend recommend) {
		// TODO Auto-generated method stub
		return recommendMapper.delRecommends(recommend);
	}
	@Override
	public int addRecommend(Recommend recommend) {
		// TODO Auto-generated method stub
		return recommendMapper.addRecommend(recommend);
	}
	
}
